<div class="animated fadeInRight ecommerce">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-title">
                    <h5>
                        <span><vc:i18n name="查询条件" namespace="payFeeAuditManage"></vc:i18n></span>
                    </h5>
                    <div class="ibox-tools" style="top:10px;">
                        <!-- <button type="button" class="btn btn-link btn-sm" style="margin-right:10px;"
                                v-on:click="_moreCondition()">{{payFeeAuditManageInfo.moreCondition == true ? '隐藏' : '更多'}}
                        </button> -->
                    </div>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-3">
                            <select class="custom-select" v-model="payFeeAuditManageInfo.conditions.payObjType">
                                <option value="" selected>{{vc.i18n('请选择付费对象','payFeeAuditManage')}}</option>
                                <option v-for="(item,index) in payFeeAuditManageInfo.payObjTypes" :key="index"
                                        v-bind:value="item.statusCd">{{item.name}}
                                </option>
                            </select>
                        </div>
                        <div class="col-sm-4">
                            <select class="custom-select" v-model="payFeeAuditManageInfo.conditions.state" :placeholder="vc.i18n('请选择状态','payFeeAuditManage')">
                                <option value="1010">{{vc.i18n('待审核','payFeeAuditManage')}}</option>
                                <option value="2020">{{vc.i18n('审核通过','payFeeAuditManage')}}</option>
                                <option value="3030">{{vc.i18n('审核未通过','payFeeAuditManage')}}</option>
                            </select>
                        </div>
                        <div class="col-sm-3" v-if="payFeeAuditManageInfo.conditions.payObjType =='666'">
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('请填写车牌号','payFeeAuditManage')" v-model="payFeeAuditManageInfo.conditions.payerObjId" class="form-control">
                            </div>
                        </div>
                        <div class="col-sm-3" v-else>
                            <div class="form-group">
                                <input type="text" :placeholder="vc.i18n('请填写房屋 楼栋-单元-室','payFeeAuditManage')" v-model="payFeeAuditManageInfo.conditions.payerObjId" class="form-control">
                            </div>
                        </div>
                        <div class="col-sm-2">
                            <button type="button" class="btn btn-primary btn-sm" v-on:click="_queryPayFeeMethod()">
                                <i class="fa fa-search"></i><span><vc:i18n name="查询" namespace="payFeeAuditManage"></vc:i18n></span>
                            </button>
                            <button type="button" class="btn btn-white btn-sm" v-on:click="_resetPayFeeMethod()">
                                <i class="fa fa-repeat"></i><span><vc:i18n name="重置" namespace="payFeeAuditManage"></vc:i18n></span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5>
                        <span><vc:i18n name="缴费审核" namespace="payFeeAuditManage"></vc:i18n></span>
                    </h5>
                    <div class="ibox-tools" style="top:10px;">
                        <!-- <button type="button" class="btn btn-primary btn-sm" v-on:click="_exportExcel()">
                            <i class="fa fa-plus"></i>
                            导出
                        </button> -->
                    </div>
                </div>
                <div class="ibox-content">
                    <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                        <thead>
                            <tr>
                                <th class="text-center">
                                    <span><vc:i18n name="房屋" namespace="payFeeAuditManage"></vc:i18n></span>
                                </th>
                                <th class="text-center">
                                    <span><vc:i18n name="费用项目" namespace="payFeeAuditManage"></vc:i18n></span>
                                </th>
                                <th class="text-center">
                                    <span><vc:i18n name="付费周期" namespace="payFeeAuditManage"></vc:i18n></span>
                                </th>
                                <th class="text-center">
                                    <span><vc:i18n name="缴费起始时间" namespace="payFeeAuditManage"></vc:i18n></span>
                                </th>
                                <th class="text-center">
                                    <span><vc:i18n name="缴费结束时间" namespace="payFeeAuditManage"></vc:i18n></span>
                                </th>
                                <th class="text-center">
                                    <span><vc:i18n name="应付金额(单位:元)" namespace="payFeeAuditManage"></vc:i18n></span>
                                </th>
                                <th class="text-center">
                                    <span><vc:i18n name="实付金额(单位:元)" namespace="payFeeAuditManage"></vc:i18n></span>
                                </th>
                                <th class="text-center">
                                    <span><vc:i18n name="操作员工" namespace="payFeeAuditManage"></vc:i18n></span>
                                </th>
                                <th class="text-center">
                                    <span><vc:i18n name="缴费时间" namespace="payFeeAuditManage"></vc:i18n></span>
                                </th>
                                <th class="text-center">
                                    <span><vc:i18n name="审核状态" namespace="payFeeAuditManage"></vc:i18n></span>
                                </th>
                                <th class="text-center">
                                    <span><vc:i18n name="审核说明" namespace="payFeeAuditManage"></vc:i18n></span>
                                </th>
                                <th class="text-center">
                                    <span><vc:i18n name="缴费备注" namespace="payFeeAuditManage"></vc:i18n></span>
                                </th>
                                <th class="text-center">
                                    <span><vc:i18n name="详情" namespace="payFeeAuditManage"></vc:i18n></span>
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr v-for="payFee in payFeeAuditManageInfo.payFees">
                                <td class="text-center">{{payFee.payerObjName}}</td>
                                <td class="text-center">{{payFee.feeName}}</td>
                                <td class="text-center">{{payFee.cycles}}
                                    <span><vc:i18n name="个月" namespace="payFeeAuditManage"></vc:i18n></span>
                                </td>
                                <td class="text-center">{{payFee.startTime}}</td>
                                <td class="text-center">{{payFee.endTime}}</td>
                                <td class="text-center">{{payFee.receivableAmount}}</td>
                                <td class="text-center">{{payFee.receivedAmount}}</td>
                                <td class="text-center">{{payFee.userName}}</td>
                                <td class="text-center">{{payFee.createTime}}</td>
                                <td class="text-center">
                                    <span class="badge badge-success" v-if="payFee.state == '2020'">{{_getState(payFee.state)}}</span>
                                    <span class="badge badge-danger" v-else-if="payFee.state == '3030'">{{_getState(payFee.state)}}</span>
                                    <span class="badge badge-info" v-else>{{_getState(payFee.state)}}</span>
                                </td>
                                <td class="text-center">{{payFee.message}}</td>
                                <td class="text-center">{{payFee.remark}}</td>
                                <td class="text-center">
                                    <button class="btn btn-link btn-xs" v-on:click="_detailFee(payFee)"><span><vc:i18n name="详情" namespace="payFeeAuditManage"></vc:i18n></span>
                                </button>
                                    <button class="btn btn-link btn-xs" v-if="payFee.state != '2020' && payFee.state != '3030' " v-on:click="_openAuditFeeModal(payFee)"><span><vc:i18n name="审核费用" namespace="payFeeAuditManage"></vc:i18n></span>
                                </button>
                                    <button class="btn btn-link btn-xs" v-if=" payFee.state == '3030' " v-on:click="_openRefundModel(payFee)"><span><vc:i18n name="退费" namespace="payFeeAuditManage"></vc:i18n></span>
                                </button>
                                </td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="13">
                                    <ul class="pagination float-right"></ul>
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                    <!-- 分页 -->
                    <vc:create path="frame/pagination"></vc:create>
                </div>
            </div>
        </div>
    </div>
    <vc:create path="common/audit" callBackListener="payFeeAuditManage" callBackFunction="audtiNotify"></vc:create>
    <vc:create path="property/returnPayFee"></vc:create>
</div>
